package com.jy.api.dao;

import com.jy.api.domain.StockProduct;
import org.springframework.data.domain.Page;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Created by xiaohua on 2019/4/19.
 */
public interface StockProductDao extends CrudRepository<StockProduct,Integer>{



    List<StockProduct> findAllByProductTypeIdAndEnabled(int typeId, boolean enabled);




    List<StockProduct> findAllByEnabledOrderByAddTimeDesc(boolean enabled);


    List<StockProduct> findBySpecIdAndEnabledOrderByAddTimeDesc(int id,boolean enabled);


}
